#ifndef VIEWER_H
#define VIEWER_H

#include "CImg.h"
#include "fuzzyclassifier.h"

namespace fc
{

using namespace cimg_library;
  
class FuzzySets;
class FuzzyClassifier;

class Viewer
{
    FuzzyClassifier & fuzzyClassifier_;
    CImg<unsigned char> setsImage_;
    void drawSets(const std::vector< fc::FuzzySet >& sets, int index);
    CImg<unsigned char> fillDecoration(int x, int y) const;
    
public:
    Viewer(FuzzyClassifier & fuzzy_classifier);
    void show();
};


}
#endif // VIEWER_H
